package com.mayikt.mapper;

import com.mayikt.entity.PayTokenLogEntity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface PayTokenLogMapper {
    @Insert("insert into pay_token_log values(null,#{payToken},#{paymentId},now());")
    int insertPayTokenLog(PayTokenLogEntity payTokenLogEntity);

    @Select("SELECT ID AS ID,pay_token AS PAYTOKEN,payment_id as paymentid,create_time as createtime  FROM pay_token_log " +
            "where pay_token=#{payToken};")
    PayTokenLogEntity selectPayTokenLog(String payToken);
}
